const surname = "赵钱孙李周吴郑王冯陈褚卫蒋沈韩杨朱秦尤许吕施张孔曹严华金魏陶姜戚谢邹喻柏水窦章云苏潘葛奚范彭郎鲁韦昌马苗凤花方俞任袁柳酆鲍史唐费廉岑薛雷贺倪汤滕殷罗毕郝邬安常乐于时傅皮卞齐康伍余元卜顾孟平黄和穆萧尹"
const name = "二十丁厂七卜人入八九几儿了力乃刀又三于干亏士工土才寸下大丈与万上小口巾山千乞川亿个勺久凡及夕丸么广亡门义之尸弓己已子卫也女飞刃习叉马乡丰王井开夫天无元"
const ares = ['福田', '罗湖', '南山', '龙华', '龙岗', '宝安', '光明', '大鹏', '坪山']
let tabData = []
self.onmessage = (e) => {
    let n = Number(e.data)
    for(let i = 0; i < n; i++) {
        tabData.push({
            id: 'Id'+Date.now(),
            val1: surname[Math.floor(Math.random()*99)] + '*' + name[Math.floor(Math.random()*75)],
            val2: Math.floor(Math.random()*100),
            val3: Math.floor(Math.random()*10) > 5 ? '男' : '女',
            val4: '深圳市'+ares[Math.floor(Math.random()*9)]+'区',
            val5: ('1'+Math.floor(Math.random()*100)).padEnd(3, '0')+'****'+'8888',
            val6: (Math.floor(Math.random()*999999999)+'').padEnd(9, '0')+'****8888',
            val7: Math.floor(Math.random()*10) > 5 ? '是' : '否',
            val8: Math.floor(Math.random()*10) > 5 ? '是' : '否'
        })
    }
    self.postMessage(tabData)
}
